package com.gopay.common.domain.ic;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/*
 * Copyright (c) 2016. www.gopay.com.cn Inc.All rights reserved.
 * 项目名称 : 国付宝内部对账(2016/11/29)
 * 文件名称 : IcTrialBalance
 * 创建日期 : 16-12-21 下午6:00
 * Author   : baiyunpeng
 *
 */

@Entity
@Table(name = "IC_TRIAL_BALANCE")
public class IcTrialBalance extends BaseEntity {
  private String checkDate;
  private BigDecimal reserveAccBalance;
  private BigDecimal custAccBalance;
  private BigDecimal interAccountBalance;
  private BigDecimal feeAccBalance;
  private BigDecimal trialBalanceDiff;
  private Integer version;
  private Date createdTs;
  private Date lastUpdTs;
  private String remark;
  private Integer keyId;
  private boolean isNotCover=true;
  @Column(name = "LAST_UPD_TS")
  public Date getLastUpdTs() {
    return lastUpdTs;
  }

  public void setLastUpdTs(Date lastUpdTs) {
    this.lastUpdTs = lastUpdTs;
  }
  @Column(name = "REMARK")
  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }
  @Transient
  public boolean getIsNotCover() {
    return isNotCover;
  }

  public void setIsNotCover(boolean isNotCover) {
    this.isNotCover = isNotCover;
  }
  @Column(name = "CHECK_DATE")
  public String getCheckDate() {
    return checkDate;
  }

  public void setCheckDate(String checkDate) {
    this.checkDate = checkDate;
  }
  @Column(name = "RESERVE_ACC_BALANCE")
  public BigDecimal getReserveAccBalance() {
    return reserveAccBalance;
  }

  public void setReserveAccBalance(BigDecimal reserveAccBalance) {
    this.reserveAccBalance = reserveAccBalance;
  }
  @Column(name = "CUST_ACC_BALANCE")
  public BigDecimal getCustAccBalance() {
    return custAccBalance;
  }

  public void setCustAccBalance(BigDecimal custAccBalance) {
    this.custAccBalance = custAccBalance;
  }
  @Column(name = "INTER_ACC_BALANCE")
  public BigDecimal getInterAccountBalance() {
    return interAccountBalance;
  }

  public void setInterAccountBalance(BigDecimal interAccountBalance) {
    this.interAccountBalance = interAccountBalance;
  }
  @Column(name = "FEE_ACC_BALANCE")
  public BigDecimal getFeeAccBalance() {
    return feeAccBalance;
  }

  public void setFeeAccBalance(BigDecimal feeAccBalance) {
    this.feeAccBalance = feeAccBalance;
  }
  @Column(name = "TRIAL_BALANCE_DIFF")
  public BigDecimal getTrialBalanceDiff() {
    return trialBalanceDiff;
  }

  public void setTrialBalanceDiff(BigDecimal trialBalanceDiff) {
    this.trialBalanceDiff = trialBalanceDiff;
  }
  @Version
  @Column(name = "VERSION")
  public Integer getVersion() {
    return version;
  }

  public void setVersion(Integer version) {
    this.version = version;
  }
  @Column(name = "CREATED_TS")
  public Date getCreatedTs() {
    return createdTs;
  }

  public void setCreatedTs(Date createdTs) {
    this.createdTs = createdTs;
  }
  @Id
  @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "IC_TRIAL_BALANCE_SEQ")
  @SequenceGenerator(name = "IC_TRIAL_BALANCE_SEQ", allocationSize = 1, initialValue = 1, sequenceName = "IC_TRIAL_BALANCE_SEQ")
  @Column(name = "KEY_ID")
  public Integer getKeyId() {
    return keyId;
  }

  public void setKeyId(Integer keyId) {
    this.keyId = keyId;
  }
}
